package com.h2.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.hibernate.exception.DataException;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: TongRui乀
 * @Date: 2020-09-08 19:53
 * @description：
 */
@Data
@Entity
@Table(name = "role")
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler"})
public class Role implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String name;
    @Column(name = "create_user")
    private String createUser;
    @Column(name = "create_time")
    private Date createTime;

}
